package com.ruoyi.system.domain.dto;

import com.ruoyi.common.annotation.Excel;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * WIFI信息对象 wf_detail
 *
 * @author ruoyi
 * @date 2024-08-10
 */
@Setter
@ToString
@Accessors(chain = true)
public class WfDetailSaveDto implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 昵称/名称
     */
    @Excel(name = "昵称/名称")
    private String name;

    /**
     * wifi名称
     */
    @Excel(name = "wifi名称")
    private String ssId;

    /**
     * WiFi密码
     */
    @Excel(name = "WiFi密码")
    private String password;

    /**
     * 提交人unionId
     */
    @Excel(name = "提交人unionId")
    private String subUnionId;

    @NotBlank(message = "昵称/名称不能为空")
    @Size(min = 0, max = 30, message = "昵称/名称长度不能超过30个字符")
    public String getName() {
        return name;
    }

    @NotBlank(message = "wifi名称不能为空")
    @Size(min = 0, max = 30, message = "wifi名称长度不能超过30个字符")
    public String getSsId() {
        return ssId;
    }

    @NotBlank(message = "WiFi密码不能为空")
    @Size(min = 0, max = 30, message = "WiFi密码长度不能超过30个字符")
    public String getPassword() {
        return password;
    }

    public String getSubUnionId() {
        return subUnionId;
    }

}
